package net.wisos.opn.admin.entity;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Column;

import net.wisos.opn.account.entity.User;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 网站管理人员
 * 
 * @author Liuye
 * 
 */
@SuppressWarnings("serial")
@Entity
@DiscriminatorValue("a")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Administrator extends User {
	/**
	 * 部门
	 */
	private String dept;

	/**
	 * @return the dept
	 */
	@Column(length = 8)
	public String getDept() {
		return dept;
	}

	/**
	 * @param dept
	 *            the dept to set
	 */
	public void setDept(String dept) {
		this.dept = dept;
	}
}
